package com.br.apurn.model.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO<T> {
	
	public void addEntity(T entity) throws DAOException;

	public void updateEntity(T entity) throws DAOException;

	public void removeEntity(T entity, Serializable id) throws DAOException;

	
	public List<T> findAll(String classname) throws DAOException;

	public T findById(Serializable id) throws DAOException;
	
}